//
//  EGORefreshTableHeaderView.h
//  Demo
//
//  Created by Devin Doty on 10/14/09October14.
//  Copyright 2009 enormego. All rights reserved.
//
//修改人：禚来强 iphone开发qq群：79190809 邮箱：zhuolaiqiang@gmail.com
//


#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "EGORefreshUnitView.h"

//typedef enum{
//	EGOOPullRefreshPulling = 0,
//	EGOOPullRefreshNormal,
//	EGOOPullRefreshLoading,	
//} EGOPullRefreshState;

@protocol EGORefreshTableTailDelegate;
@interface EGORefreshTableTailView : UIView {
	
	id _delegate;
	EGOPullRefreshState _state;

	UILabel *_lastUpdatedLabel;
	UILabel *_statusLabel;
	CALayer *_arrowImage;
	UIActivityIndicatorView *_activityView;
	
    
    UIImageView *backGroundImageView;

}

@property (nonatomic,retain)  UIImageView *backGroundImageView;

@property(nonatomic,assign) id <EGORefreshTableTailDelegate> delegate;

- (void)refreshLastUpdatedDate;
- (void)egoRefreshScrollViewDidScroll:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDidEndDragging:(UIScrollView *)scrollView;
- (void)egoRefreshScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView;

@end
@protocol EGORefreshTableTailDelegate
- (void)egoRefreshTableTailDidTriggerRefresh:(EGORefreshTableTailView*)view;
- (BOOL)egoRefreshTableTailDataSourceIsLoading:(EGORefreshTableTailView*)view;
@optional
- (NSDate*)egoRefreshTableTailDataSourceLastUpdated:(EGORefreshTableTailView*)view;
@end
